| Fully Qualified Name: | CodeIgniter\Debug\Iterator |
Iterator for debugging.
| Name | Description | Defined By |
|---|---|---|
| add() | Adds a test to run. | Iterator |
| getReport() | Get results. | Iterator |
| run() | Runs through all of the tests that have been added, recording time to execute the desired number of iterations, and the approximate memory usage used during those iterations. | Iterator |
Adds a test to run.
Tests are simply closures that the user can define any sequence of things to happen during the test.
| Parameter Name | Type | Description |
|---|---|---|
| $name | string | |
| $closure | \Closure |
Returns: $this
Get results.
Returns: string
Runs through all of the tests that have been added, recording time to execute the desired number of iterations, and the approximate memory usage used during those iterations.
| Parameter Name | Type | Description |
|---|---|---|
| $iterations | int | |
| $output | bool |
Returns: string|null